import {Component} from "@angular/core";
import {AlertController, NavController, NavParams} from "ionic-angular";
import {HttpService} from "../../../providers/http.service";
import {CommonFunc} from "../../../providers/commonFunc";
import {Storage} from "@ionic/storage";
import {ElevatorCheck} from "../elevator-check/elevator-check";

@Component({
  templateUrl: "elevator-check-modify.html"
})
export class ElevatorCheckModify {
    result: any = [];

    constructor(
        private navParams: NavParams,
        private commonFunc: CommonFunc,
        private httpService: HttpService,
        private storage: Storage,
        private navController: NavController,
        public alertCtrl: AlertController
    ) {
        let result = this.navParams.get("elevatorModifyResult");
        if (result != null && result != undefined) {
            this.result = result;
        }

    }
    //
    submit(){
        this.navController.push(ElevatorCheck,{
            result:this.result,
            type: "3", /*this.navParams.get("type")*/
            id: this.navParams.get("id"),
            pdId: this.navParams.get("pdId"),
            beCkedPartyName: this.navParams.get("beCkedPartyName"),
            beCkedPartyId: this.navParams.get("beCkedPartyId"),
            pdType: this.navParams.get("pdType"),
            state: this.navParams.get("state"),
        })
    }
}
